package com.cl.short_video_java.vo.shop;

import lombok.Data;
import org.apache.poi.hpsf.Decimal;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @Author 付
 * @Date 2024-11-14 9:08
 * @Version 1.0
 * @description 新增/修改商品
 * @since 1.0
 */
@Data
public class ShopAdd {
	private Integer id;
	@NotEmpty(message = "商品名称不能为空")
	private String title;
	private String desc;
	@NotNull(message = "商品价格不能为空")
	private Float price;
	private Float discount = 1.00F;
	private String imgUrl;
	private Integer marketable = 0;
	private Integer sort = 1;
	private Integer type;
	private Integer date;
	private Integer dateUnit;

}
